import request from '@/utils/request'

export function getDics(params) {
  return request({
    url: '/dic/getDics',
    method: 'post',
    data: params
  })
}


//获取字典
export function getDic(params) {
  return request({
    url: '/dic/getDic',
    method: 'post',
    headers: {
      'Content-Type': 'application/json; charset=utf-8'
    },
    data: params
  })
}

//获取oss相关信息
export function getOssInfo() {
  return request({
    url: '/oss/sts',
    method: 'post'
  })
}


//获取验证码
export function getPhoneCode(params) {
  return request({
    url: '/app/phone/getCode',
    method: 'post',
    data: params
  })
}

//获取作业类型列表
export function getJobTypes() {
  return request({
    url: '/meta/jobTypes',
    method: 'post'
  })
}